import http from "@/api";

/**
 * @name //智能锁管理
 */

// 获取已授权房间列表
export const getAuthorizedRoomList = (params = {}) => {
  return http.post(`/room/employee/authorized/query`, params, { noLoading: true });
};

// 获房间列表
export const getRoomList = (params = {}) => {
  return http.post(`/room/query`, params, { noLoading: true });
};

// 获取酒店选择列表
export const getHotelSelList = (params = {}) => {
  return http.get(`/lookup/hotels`, params, { noLoading: true });
};

// 增加授权房间
export const addRoom = (params = {}) => {
  return http.post(`/room/authorized/add`, params);
};

// 删除已授权房间
export const delRoom = (params = {}) => {
  return http.post(`/room/employee/authorized/delete`, params);
};
